package org.piggy.common.exception;

import org.piggy.common.enums.ResponseCode;
import java.io.Serial;

public class ConnectException extends BasicException {

	@Serial
	private static final long serialVersionUID = -8503239867913964958L;

	public ConnectException(Throwable cause, ResponseCode code) {
		super(code.getMessage(), cause, code);
	}

	public ConnectException(ResponseCode code) {
		super(code.getMessage(), code);
	}
}
